package org.fb;

import org.fb.boot.ServerBoot;
import org.fb.service.UserServiceImpl;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * @author fanbo@imoran.net
 * @date 2021/2/6 23:11
 */
@SpringBootApplication
public class RpcSpringBootApplication {

    public static void main(String[] args) {
        SpringApplication.run(RpcSpringBootApplication.class, args);
        // 启动服务器
        try {
            UserServiceImpl.startServer("127.0.0.1", 8999);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
